import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LoginService } from './login.service';
import { LoginController } from './login.controller';
import { RedisService } from '../redis/redis.service';
import { User } from '../user/entity/user.entity';

@Module({
  imports: [TypeOrmModule.forFeature([User])], // 导入 User 实体
  controllers: [LoginController],
  providers: [LoginService, RedisService],
})
export class LoginModule { }
